home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Linux Cubed Series 2: Applications
/
Linux Cubed Series 2 - Applications.iso
/
math
/
gle-3.000
/
gle-3
/
gle
/
memmove.c
< prev
next >
Wrap
C/C++ Source or Header
|
1995-02-07
|
317b
|
20 lines
/*
* memmove, copy overlapping strings
*
* We supply this routine for those systems that aren't standard yet.
*/
char *memmove(char *dest, char *src, int l)
{
char *ret = dest;
if (dest<src) {
while (l--) *dest++ = *src++;
} else {
dest+=l; src+=l;
while (l--) *(--dest) = *(--src);
}
return ret;
}